package com.zzg.springboot.configbean;

import org.springframework.boot.context.properties.ConfigurationProperties;

// springboot 推荐使用@ConfigurationProperties 注解绑定自定义对象
@ConfigurationProperties(prefix = "com.zzg.springboot")
public class ConfigBean {
	//注意：与application.properties 自定义名称对应
	private String name;
	private String address;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	

}
